import axios from 'axios'
import qs from 'query-string'
const http = axios.create({
  baseURL: 'http://main.ssly.com/shop.php/',
  withCredentials: true,
  // headers: {
  //   'Content-Type': 'application/x-www-form-urlencoded'
  // },
  emulateJSON: true,
  transformRequest: function (data) {
    return qs.stringify(data, {arrayFormat: 'bracket'})
  }
})
export default http
